<?php
$config = [
    'components' => [
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=localhost;dbname=yii2advanced',
            'username' => 'root',
            'password' => '',
            'charset' => 'utf8',
        ],
        'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'viewPath' => '@common/mail',
            // send all mails to a file by default. You have to set
            // 'useFileTransport' to false and configure a transport
            // for the mailer to send real emails.
            'useFileTransport' => true,
        ],
        'xcx' => [ // 小程序
            'class' => 'common\components\easy_wechat\EasyWechat',
            'appID' => "",
            'appSecret' => "",
            'type' => 2,
        ],
        'easyImage' => [
            'class' =>'common\components\image_beds\EasyImage',
            'uploadUrl' => "",
            'token' => "",
        ],
        /*'fs' => [
            'class' => 'common\components\image_beds\EasyImageFs',
        ],*/
        'xcxApi' => [
            'class' => 'common\components\api_tool\XcxApi',
            'baseUri' => THIS_SERVER_BASE_URI,
            'apiUri' => "/api/",
            'token' => "wodorwTest",
            'key' => "wodorwTest",
//            'proxy' => [
//                'http' => 'http://domain:8080',
//                'https' => 'https://domain:8080',
//            ],
        ],
    ],
    'params' => [
        'beian' => [ // 备案信息
            'href' => "https://beian.miit.gov.cn",
            'numbering' => "",
        ],
        'defaultCountyId' => 330603000000, // 柯桥
    ],
];

return $config;
